﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="SiteBlogList.aspx.cs" Inherits="ZF.BLL.Admin.SiteBlogList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <style>
 .f1{ color:#3366CC;}
 .f2{ color:#f00;}
 .f3{ color:#eee;}
 .f4{ color:#339933;}
 </style>
    <!--自定义条件 开始-->
    <%--<div class="tabHeadMenu">
    
        <a href="<%=this.ListPage %>" class='<%=(Type==0 && MT==-1)?"action":"" %>'>全部商品</a> <a
            href="<%=this.ListPage %>?type=1" class='<%=(Type==1)?"action":"" %>'>推荐商品</a>
        <a href="<%=this.ListPage %>?type=2" class='<%=(Type==2)?"action":"" %>'>热销商品</a>
        <a href="<%=this.ListPage %>?type=3" class='<%=(Type==3)?"action":"" %>'>打折商品</a>
        <a href="<%=this.ListPage %>?type=4" class='<%=(Type==4)?"action":"" %>'>上架商品</a>
        <a href="<%=this.ListPage %>?type=5" class='<%=(Type==5)?"action":"" %>'>下架商品</a>
         <a href="<%=this.ListPage %>?type=6" class='<%=(Type==6)?"action":"" %>'>到期商品</a>
    </div>--%>
    <!--自定义条件 结束-->
    <!--列表 开始-->
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending" SortExpression="Blog.SiteBlogId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Blog.SiteBlogId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true" Visible="false">
                </zf:TemplateField>
                <zf:TemplateField HeaderText="博客名称"  >
                    <ItemTemplate>
                       <%#Eval("Blog.Name")%>
                    </ItemTemplate>
                </zf:TemplateField>
             <zf:TemplateField HeaderText="博客地址"  >
                    <ItemTemplate>
                    <a href="<%#Eval("Blog.Url")%>" target="_blank"><%#Eval("Blog.Url")%></a>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="序号"  >
                    <ItemTemplate>
                    <%#Eval("Blog.OrderId")%>
                    </ItemTemplate>
                </zf:TemplateField>
                
                
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                    
                          <a href='<%=this.ManagePage %>?ot=Edit&id=<%# Eval("Blog.SiteBlogId")%>'>
                                    修改</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%#Eval("Blog.SiteBlogId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
    <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的<%=CTitle %></zf:LinkButton>
            
        <a href="<%=this.ManagePage %>?ot=AddNew">添加<%=CTitle %></a>
        
       <%-- <zf:LinkButton ID="LinkButton2" runat="server" OnClick="Oper" CommandArgument='SellUp'
            OnClientClick="return confirm('是否确定要执行该操作');">选中商品上架</zf:LinkButton>
  <zf:LinkButton ID="LinkButton3" runat="server" OnClick="Oper" CommandArgument='SellDown'
            OnClientClick="return confirm('是否确定要执行该操作');">选中商品下架</zf:LinkButton>
   <zf:LinkButton ID="LinkButton4" runat="server" OnClick="Oper" CommandArgument='CancelDiscount'
            OnClientClick="return confirm('是否确定要执行该操作');">选中商品取消折扣</zf:LinkButton>
   <zf:LinkButton ID="LinkButton5" runat="server" OnClick="Oper" CommandArgument='IsRecommend'
            OnClientClick="return confirm('是否确定要执行该操作');">取消或设置为推荐</zf:LinkButton>--%>
    </div>
    <!--自定义按钮 结束-->
    <div class="fc_ mt10_">
    </div>
    <!--搜索 开始-->
    <%--<div class="searchContainer">
        <table>
            <tr>
                <td class="l">
                    搜索选项:
                </td>
                <td class="m">
                    <div class="c">
                        <span class="t">物业名称:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbTitle"></zf:TextBox></span>
                        <span class="t">物业类型:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseType" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(小于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime1" onfocus="calendar();"></zf:TextBox></span>
                        <br />
                        <span class="t">客户编号:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbHouseNo"></zf:TextBox></span>
                        <span class="t">房源状态:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseStatus" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                                 <asp:ListItem Value="1" Text="发布中"></asp:ListItem>
                                  <asp:ListItem Value="2" Text="停止发布"></asp:ListItem>
                                   <asp:ListItem Value="3" Text="已交易"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(大于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime2" onfocus="calendar();"></zf:TextBox></span>
                        <zf:Button runat="server" ID="Button2" Text="搜 索" OnClick="Search" class="linkbtn" />
                        <zf:Button runat="server" ID="Button1" Text="全 部" OnClick="AllList" class="linkbtn" />
                    </div>
                </td>
            </tr>
        </table>
    </div>--%>
    <!--搜索 结束-->
</asp:Content>
